<?php

/**
 * Main actions.
 *
 * @package    cms
 * @subpackage Main
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class MainActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
   
  public function executeIndex(sfWebRequest $request)
  {
    //$this->forward('default', 'module');
	if ($request->isMethod('Post'))
	{
	
	echo $user = $this->getRequestParameter('user');
	echo $password = $this->getRequestParameter('password');
	echo $gender = $this->getRequestParameter('gender');
	
	$this->getUser()->setFlash('SUCCESS_MESSAGE', 'Data Published...');
	exit();
	}
	
	else
	{
	$this->test = "this is the pre load string";
	}
  }
  
  public function executeAdd(sfWebRequest $request)
  {
  print_r ($request);
  }

} //end CLASS
